(function() {
	var hasFlash = 0;
	if (document.all) {
		var swf = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
		if (swf) {
			hasFlash = 1;
		}
	} else {
		if (navigator.plugins && navigator.plugins.length > 0) {
			var swf = navigator.plugins["Shockwave Flash"];
			if (swf) {
				hasFlash = 1;
			}
		}
	}
	if (hasFlash == 0) {
		location.href = 'downFlash.html';
	}
})();
function addMargin(obj){
	var oHei=-obj.outerHeight()/2+"px";
	var oWid=-obj.outerWidth()/2+"px";
	obj.css({"margin-top":oHei,"margin-left":oWid});
}//浏览器中居中
function closeParent(obj){
	obj.parent().parent().hide();
	if($(".shade3").is(":visible")){
		$(".shade3").hide();
	}else if($(".shade2").is(":visible")){
		$(".shade2").hide();
	}else{
		$(".shade1").hide();
	}
}//关闭按钮